package qs.crm.modules.client.cstLost.domain;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import java.io.IOException;

public class LongToStringUtil extends JsonSerializer<Long> {
    @Override
    public void serialize(Long o, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {
        if(null!= o){
            jsonGenerator.writeString(o.toString());
        }

    }
}
